<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: 'https://qmyxcg.myscrm.cn/qmyx-front/rhjituanadmin/index?token=bwqmin1565680047&orgCode=rhjituanadmin',
				type: 'balance', //余额明细-跳转到银豹
			}
		},
		onLoad(data) {
			if(data.type) {
				this.type = data.type;
				this.url = "https://vcmgg-61.pospal.cn";
			}else {
				this.getNavigatorInfo()
			}
		},
		methods: {
			getNavigatorInfo() {
			  this.$api.sendRequest({
				url: "/api/site/configUrl",
				data: {},
				success: res => {
				  if(res.code == 0) {
					this.url = res.data.shequ_url_config.path;
				  }
				}
			  })
			},
		}
	}
</script>

<style>

</style>
